import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/database/user.entity';
import { CaptchaService } from './services/captcha.service';
import { TokenService } from './services/token.service';
import { Role } from 'src/database/role.entity';

@Module({
  imports: [TypeOrmModule.forFeature([User, Role])],
  controllers: [UserController],
  providers: [UserService, CaptchaService, TokenService],
  exports: [UserService, CaptchaService, TokenService],
})
export class UserModule {}
